#include "StartApp.h"


StartApp::StartApp()
{
    m_w = nullptr;
    connect(&m_loginpageWidget, &LoginPageWidget::LoginSuccess, this, &StartApp::LoginSuccess);

    m_loginpageWidget.show();
    //m_w = new Widget();
    //m_w->show();
}

StartApp::~StartApp()
{
    if(m_w)
    {
        delete m_w;
        m_w = nullptr;
    }
}

void StartApp::LoginSuccess()
{
    m_loginpageWidget.hide();
    m_w = new Widget();
    m_w->show();
}
